{include file="public_iframe:head"}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>凭证列表</h5>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-3">
                            <a href="{:url('Platform/add_certificate')}" class="btn btn-primary">添加凭证</a>
                        </div>

                        <form class="form-inline" action="" method="get">
                            <div class="col-sm-9">
                                <div class="input-group col-sm-3  pull-right">
                                    <span class="input-group-btn">
                                      <button type="submit" class="btn btn-sm btn-primary">搜索</button>
                                    </span>
                                </div>

                                <div class="input-group col-sm-1 pull-right select_width">
                                    <select name="check" class="input-sm form-control select_no_border">
                                        <option value="">状态</option>
                                        <option value="0" {if condition="$check =='0'"}selected{/if}>待审核</option>
                                        <option value="1" {if condition="$check =='1'"}selected{/if}>通过</option>
                                        <option value="-1" {if condition="$check =='-1'"}selected{/if}>不通过</option>
                                    </select>
                                </div>
                            </div>
                        </form>
                    </div>

                    <br />

                    <div class="table-responsive">
                        <form action="__URL__/operate" method="post" id="operate_form">
                            <table class="table table-bordered table-hover"
                                   id="categoryTable">
                                <thead>
                                <tr class="active">
                                    <th height="40">图片</th>
                                    <th>上传时间</th>
                                    <th>审核状态</th>
                                </tr>
                                </thead>
                                <tbody>
                                {volist name="list" id="vo"}
                                    <tr>
                                        <td><img src="{$vo.image}" width="200" height="100"></td>
                                        <td>{$vo.creatime}</td>
                                        <td>
                                            {if condition="$vo.check eq 0"}待审核{/if}
                                            {if condition="$vo.check eq 1"}通过{/if}
                                            {if condition="$vo.check eq -1"}拒绝{/if}
                                        </td>
                                    </tr>
                                {/volist}

                                </tbody>
                            </table>
                        </form>
                        <div class="col-sm-12" style="padding:0px;">
                            <ul class="pagination  pull-right">
                                {$page}
                            </ul>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>
</body>

</html>